package org.poptest.populate.provider.impl;

import org.poptest.populate.provider.NumberProvider;

/**
 * Licensed under the Apache License, Version 2.0 (the "License");
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * @author Alan Roche
 *         Date: 14/02/11
 *         Time: 22:58
 */
public class ShortProvider extends NumberProvider<Short> {

    public ShortProvider() {
        super(Short.class, (short) 1, Short.MAX_VALUE);
    }

    @Override
    protected Short doNextValue() {
        return Short.valueOf((short) (value + 1));
    }
}
